package com.mall.seckill.service;

import com.mall.common.response.CommonResponse;
import com.mall.entity.bargain.BgOrder;

/**
 * 秒杀订单服务
 *
 * @author ASUS
 * @date 2021/07/18
 */
public interface SeckillOrderService {

    /**
     * 发现由uid和秒杀商品id
     *
     * @param bgOrder
     * @return {@link BgOrder}
     */
    void insert(BgOrder bgOrder);

    CommonResponse updateOrderStatus(Long id, String status);

    BgOrder findOne(Long id);
}
